<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es">
<head>
<?php include('header.txhtml');?>
<title><?php echo $tpl_title?></title>
</head>
<body>
<div id="main">
	<div id="logo">
	<h1><?php echo $tpl_title?></h1>
	<h2><?php echo $tpl_desc;?></h2></div>
	<div id="menubar">
	<ul id="menu">
		<li><a class="current" href="<?php echo HOST_NAME?>index.php" title="Página Principal">Inicio</a></li>
	</ul>
		<div id="search">
		<form method="post" action="<?php echo HOST_NAME?>search.php">
		<p><input class="searchfield" type="text" value="Buscar..." name="search_q" id="search_q" title="Buscar..."/>
		<input class="searchbutton" name="submit" type="submit" value="Buscar" /></p>
		</form>
		</div>
		</div>

	<div id="site_content">
		<div class="sidebar">
		<?php include('sidebar.txhtml');?>
		</div>
	<div id="content_container">
		<div class="rtop"><div class="r1"></div><div class="r2"></div><div class="r3"></div><div class="r4"></div></div>
		<div id="content">
		<?php if(isset($tpl_ok)):?>
			<p class="ok">Comentario dejado correctamente</p>
		<?php elseif(isset($tpl_error)):
		 if(!is_array($tpl_error)):?>
			<p class="error"><?php echo $tpl_error;?></p>
		<?php else:?>
			<ul class="error">
			<?php foreach($tpl_error as $s_key => $s_value):?>
				<li><strong><?php echo $s_key;?>: </strong><?php echo $s_value;?></li>
			<?php endforeach?>
			</ul>
	<?php endif?>
<h1>Comentarios</h1>
	<form method="post" action="<?php echo HOST_NAME?>postcomment.php">
	<fieldset>
		<legend>Deja tu comentario</legend>
		<label for="name">Nombre:</label><input type="text" value="<?php echo $tpl_fname?>" name="name" id="name"/>
		<label for="email">E-mail:</label><input type="text" value="<?php echo $tpl_femail?>" name="email" id="email"/>
		<label for="text">Comentario:</label><textarea name="text" id="text" rows="5" cols="20"><?php echo $tpl_ftext?></textarea>
		<label for="captcha"><?php echo $tpl_fcaptcha;?>: </label><input type="text" value="" name="captcha" id="captcha"/>
		<input name="id" type="hidden" value="<?php echo $tpl_fid; ?>" />
		<p class="submit center">
		<button type="submit">Enviar</button>
		<button type="reset">Limpiar</button>
		</p>
	</fieldset> 
	</form>
<?endif;?>
<p><a href="<?php echo $tpl_aname?>">Volver a la entrada</a></p>
		</div>
	<noscript><p>Esta página utiliza código javascript para algunas funcionalidades, por favor activelo para poder disfrutar este sitio al 100%</p></noscript>
</div>
<div class="rbottom"><div class="r4"></div><div class="r3"></div><div class="r2"></div><div class="r1"></div></div>
</div>
<?php include('footer.txhtml');?>
</body>
</html>
